/*************************************************
 ** preload为预加载模块，该文件将会在程序启动时加载 **
 *************************************************/

const {logger} = require('ee-core/log')
const {trayService} = require('../service/os/tray')
const {securityService} = require('../service/os/security')
const {autoUpdaterService} = require('../service/os/auto_updater')

function preload() {
    logger.info('[preload] load')

    trayService.create()
    securityService.create()
    autoUpdaterService.create()
}

/**
 * 预加载模块入口
 */
module.exports = {
    preload
}